#include <stdio.h>

int main() {
    printf("This is some text on the current line");

    // Move the cursor to the beginning of the line using ANSI escape sequence
    printf("\r");

    // Clear the entire line
    printf("\033[K");

    // Now you can print new content
    printf("New content on the same line\n");

    return 0;
}
